package reflect;

import java.util.Arrays;

public class ArgsDemo {
    public static void main(String[] args) {
        dosome("a","b");
        dosome();
        dosome("小王啊啊啊","你干嘛","喜欢唱跳","Rap","篮球","只因你太美baby");
    }

    /**
     * 变长参数才一个方法中必须是最后一个参数
     * @param strings
     */
    public static void dosome(String... strings){
        System.out.println(strings.length);
        System.out.println(Arrays.toString(strings));
    }
}
